package com.gxa.community.admin.realm.Auth2Token;

import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.UsernamePasswordToken;

/**
 * 作者： Juran on 2022-07-23 17:46
 * 作者博客：iit.la
 */
public class Auth2Token implements AuthenticationToken {
    private String token;

    public Auth2Token(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return this.token;
    }

    @Override
    public Object getCredentials() {
        return this.token;
    }
}
